package com.gewu.pm.bean;

/**
 * 销售线索实体类
 */
public class SalesLeadBean {

    /** 类型：0-未转化，1-已转化 */
    private int type;
    
    /** 线索/终端名称 */
    private String name;
    
    /** 地址 */
    private String address;
    
    /** 编码 */
    private String code;
    
    /** 转化人（仅已转化时有） */
    private String converter;
    
    /** 转化时间（仅已转化时有） */
    private String conversionTime;

    public SalesLeadBean() {
    }

    public SalesLeadBean(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getConverter() {
        return converter;
    }

    public void setConverter(String converter) {
        this.converter = converter;
    }

    public String getConversionTime() {
        return conversionTime;
    }

    public void setConversionTime(String conversionTime) {
        this.conversionTime = conversionTime;
    }

    /**
     * 是否未转化
     */
    public boolean isUnconverted() {
        return type == 0;
    }

    /**
     * 是否已转化
     */
    public boolean isConverted() {
        return type == 1;
    }
}

